const publicPath = require('../config/index').jsonPath;
import publishObjectPath from '@/util/configRegistry';
import { RequestServerClass } from '../util/request';
import { DemoServer } from './feature/demoServer';
import { DizhenServer } from './feature/dizhenServer';
import { MapServer } from './feature/mapServer';
import { RescueTeamServer } from './feature/rescueTeamServer';
import { SicknessServer } from './feature/sicknessServer';
import { MaterialServer } from './feature/materialServer';
import { MedicalServer } from './feature/medicalServer';
import { WeatherServer } from './feature/weatherServer';
import { ChartServer } from './feature/chartServer';
import { BhfbService } from './wsyj/BhfbModule/BhfbService';
import { EmergencySever } from './feature/emergencySever';
import { YjwzService } from './wsyj/YjwzfbModule/YjwzfbService';
import { ZhtsService } from './wsyj/ZhtsModule/ZhtsService';
import { CityListServer } from './feature/cityListServer';
import { CompreSituationServer } from './feature/CompreSituationServer'
import { PanServer } from './feature/panServer'

console.log(publishObjectPath)

const demoServer = new DemoServer({ baseURL: publicPath });
const dizhenServer = new DizhenServer({ baseURL: publicPath });
const mapServer = new MapServer({ baseURL: publicPath });
const rescueTeamServer = new RescueTeamServer({ baseURL: publicPath });
const materialServer = new MaterialServer({ baseURL: publicPath });
const sicknessServer = new SicknessServer({ baseURL: publishObjectPath.value.serverUrl });
const medicalServer = new MedicalServer({ baseURL: publicPath });
const weatherServer = new WeatherServer({});
const chartServer = new ChartServer({ baseURL: publishObjectPath.value.serverUrl });
const bhfbServer = new BhfbService({ baseURL: publishObjectPath.value.serverUrl });
const emergencySever = new EmergencySever({ baseURL: publishObjectPath.value.serverUrl });
const yjwzServer = new YjwzService({ baseURL: publishObjectPath.value.serverUrl });
const ZhtsServer = new ZhtsService({ baseURL: publishObjectPath.value.serverZhts });
const cityListServer = new CityListServer({ baseURL: publicPath });
const compreSituationServer = new CompreSituationServer({ baseURL: publishObjectPath.value.serverUrl });
const panServer = new CompreSituationServer({baseURL: publishObjectPath.value.serverUrl})
export {
  demoServer,
  dizhenServer,
  mapServer,
  rescueTeamServer,
  sicknessServer,
  materialServer,
  medicalServer,
  weatherServer,
  chartServer,
  bhfbServer,
  emergencySever,
  yjwzServer,
  ZhtsServer,
  cityListServer,
  compreSituationServer,
  panServer
};
